package parent.cloud.order.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import parent.cloud.order.bean.Order;
import parent.cloud.order.util.ServiceInfoUtil;

@RestController
public class OrderController {

    @GetMapping("/findOrderById/{id}")
    public String findOrderById(@PathVariable String id) {
        System.out.println(ServiceInfoUtil.getPort());
        Order order = new Order(Integer.parseInt(id), "ahri", "湖北武汉", "110", 114.154);
        return order.toString();
    }
}
